import time
import pyautogui as p
time.sleep(1)
print("游戏开始")
start = time.time()
while time.time() - start < 60:
    mouses = p.locateOnScreen("mouse.png", confidence=0.6) # 获取地鼠的位置
    if mouses is None : continue
    print(p.center(mouses))
    x, y = p.center(mouses)
    p.click(x, y)
